<html>
<head>
	<!--<LINK href="style/template.php" rel="stylesheet" type="text/css">-->
	<LINK href="style/bootstrap.css" rel="stylesheet" type="text/css">
	<LINK href="style/tempstrap.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="js/ajaxRequest.js"></script>
	<script type="text/javascript" src="js/post.js"></script>
	<script type="text/javascript" src="js/fubar.js"></script>
</head>
<body>
<?php
require("resources/const.php");
require_once("library/curl.php");
//require_once("lib/auth/session.php");//session call is probably only needed in lib/ files
//require_once("lib/post/view.php");
//require("api/post/view.php");//wut?
require_once("modules/contentWrap.php");
beforeContent();

$snippetPost = true;

function drawPostTop($content) {
	if ($content['status'] != "ok") {
		echo $content['details'];
	}
	$postArr = $content['posts'];
	foreach ($postArr as $post) {
    	require("modules/post.php");
	} 
}
$postamount = 10;
$curl = new curlHelper();
$curl->addHandle($BACKEND_URL."/api/post/view.php","drawPostTop",
    array("amount"=>$postamount,"thumb"=>"1"));
$curl->exec();

afterContent();?>